﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using EbbinghausWord.BLL;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Tasks;

namespace EbbinghausWord.Pages
{
    public partial class About : PhoneApplicationPage
    {
        public About()
        {
            InitializeComponent();

            versionTextBlock.Text = SystemConfig.Version;
        }

        private void TextBlock_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            try
            {
                var task = new WebBrowserTask
                               {
                                   Uri = new Uri(@"http://weibo.com/u/2478864111", UriKind.Absolute)
                               };
                task.Show();
            }
            catch
            {
            }
        }

        private void TextBlock_MouseLeftButtonDown_1(object sender, MouseButtonEventArgs e)
        {
            try
            {
                var task = new EmailComposeTask
                {
                    To = @"derekxu416@hotmail.com",
                    Subject = "单词小秘中考版"
                };

                task.Show();
            }
            catch
            {
            }
        }
    }
}
